﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using Housing;
public partial class HouseKeep_ManageApplyAll : System.Web.UI.Page 
{ protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int year = DateTime.Now.Year; for (int i = year ; i <= year+3; i++) { ddlyear.Items.Add(i.ToString()); } } } protected void btnsearch_Click(object sender, EventArgs e) { if (Session["UserStreet"] != null) { Apply apply = new Apply(); int date = Convert.ToInt32(ddlyear.SelectedValue) * 100 + Convert.ToInt32(ddlmonth.SelectedValue); DataSet ds = apply.GetApplyByStreetAndEffectDate(Session["UserStreet"].ToString(), date); gvstreetshow.DataSource = ds; gvstreetshow.DataBind(); } else             WebHelper.AlertAndRedirect("登陆超时", "../Login.aspx"); } }